package com.itheima.travel.mapperExt;

import com.github.pagehelper.PageInfo;
import com.itheima.travel.pojo.Route;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FavoriteMapperExt {

    @Select("  SELECT * FROM tab_favorite f,tab_route r WHERE f.route_id = r.id AND f.user_id=#{userId}")
    public List<Route> findMyFavoriteByPage(@Param("userId") long userId);
}
